﻿using System.Diagnostics;

namespace HQS.TokenInterpolation.Tokens
{
    [DebuggerDisplay("Token {Name} Format {Format} OriginalText {OriginalText}")]
    public class DefaultToken : AbstractToken
    {
        [TokenProperty("format", false)]
        public string Format { get; set; }

        public override bool AllowNestingTokens
        {
            get { return false; }
        }

        protected override TokenRuntimeValue OnAccept(IDataSourcesVisitor context)
        {
            return context.Visit(this);
        }
    }
}